#version 330
#extension GL_EXT_geometry_shader4 : enable
layout(lines) in;
layout(line_strip) out;
in vec3 geomColor[2];
out vec3 exColor;

void main(void)
{
	int n = gl_in.length();
	for(int i=0; i<n; i++)
	{
		gl_Position =gl_in[i].gl_Position;
		gl_Position.z = 0.0;

		exColor = geomColor[i];

		EmitVertex();
	}
	EndPrimitive();	
}